<?
    class PrincipioLab_ListElement implements PrincipioLab_IDAble
    {
        private $value;
        private $next;

        public function __construct(PrincipioLab_IDAble $value)
        {
            $this->value = $value;
            $this->next = null;
        }


        public function _getID() { return $this->value->_getID(); }
        public function getNext() { return $this->next; }
        public function getValue() { return $this->value; }
        public function isLast() { return is_null($this->getNext()); }


        public function setNext(PrincipioLab_ListElement $list_elem)
        {
            $this->next = $list_elem;
            return $this;
        }

        public static function make(PrincipioLab_IDAble $element)
        {
            return new PrincipioLab_ListElement($element);
        }
    }
?>